import React, { Component } from 'react';
import {
  BrowserRouter as Router,
  Route
} from 'react-router-dom';
import App from '../App';
import DnDDemo from '../pages/dndDemo/index';
import TwoDnDDemo from '../pages/twoDnd/index';

export default class componentName extends Component {
  render() {
    return (
      <div>
        <Router>
          <div>
            <Route exact path="/" component={App}/>
            {/* 拖拽路由 */}
            <Route path="/dnd" component={DnDDemo}/>
            <Route path="/two/dnd" component={TwoDnDDemo}/>
          </div>
        </Router>
      </div>
    )
  }
}
